package test.redis.tool;

import java.nio.charset.Charset;

public class RedisConst {
    /**
     * Redis Optional commands in Set command
     */
    public static final String EXIST = "XX";
    public static final String NEXIST = "NX";
    public static final String EXPIRE = "EX";
    public static final String PEXPIRE = "PX";

    /**
     * Redis Simple String reply
     */
    public static final String OK = "OK";

    public static final Charset DEFAULT_CHARSET = Charset.forName("UTF-8");

    public class NoagentTypeHead {
        public static final String SERVICE = "service|";
        public static final String INGRESS = "ingress|";
        public static final String RDS = "rds";
        public static final String NCR = "ncr";
    }
    
    public class Config {
        public static final String MASTER_NAME = "redis.masterName";
        public static final String URL = "redis.url";
        public static final String DATABASE = "redis.database";
        public static final String AUTH = "redis.auth";
        public static final String MAX_TOTAL = "redis.maxTotal";
        public static final String MAX_WAIT_MILLS = "redis.maxWaitMillis";
        public static final String MAX_IDLE = "redis.maxIdle";
        public static final String MIN_IDLE = "redis.minIdle";
    }
    
    
}
